package com.cmf.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @Author: cmf
 * @Date: 2025/8/27 18:15
 * @Version: v1.0.0
 * @Description: 支付方式枚举
 **/
@Getter
public enum PayMethod {

    WECHAT_PAY(1, "微信支付"),
    ALIPAY(2, "支付宝");

    // 枚举值
    @EnumValue
    // 序列化时返回给前端的值
    @JsonValue
    private final Integer method;
    private final String desc;

    PayMethod(Integer method, String desc) {
        this.method = method;
        this.desc = desc;
    }
}